@use "variables.scss";
@use "base.scss";
@use "table.scss";
@use "draggable.scss";
@use "columns.scss";
@use "search.scss";
@use "format-brush.scss";
@use "gap-cursor.scss";
@use "node-select.scss";
@use "range-selection.scss";
@use "details.scss";

// Syntax highlighting for code blocks
@import "highlight.js/styles/github.css";

// Override highlight.js background to use our theme variables
.halo-rich-text-editor,
.theme-light .halo-rich-text-editor {
  .hljs {
    background: transparent !important;
    color: #24292e;
  }
}

.theme-dark .halo-rich-text-editor {
  .hljs {
    background: transparent !important;
    color: #c9d1d9;
  }

  // Dark theme syntax colors (GitHub Dark style)
  .hljs-doctag,
  .hljs-keyword,
  .hljs-meta .hljs-keyword,
  .hljs-template-tag,
  .hljs-template-variable,
  .hljs-type,
  .hljs-variable.language_ {
    color: #ff7b72;
  }

  .hljs-title,
  .hljs-title.class_,
  .hljs-title.class_.inherited__,
  .hljs-title.function_ {
    color: #d2a8ff;
  }

  .hljs-attr,
  .hljs-attribute,
  .hljs-literal,
  .hljs-meta,
  .hljs-number,
  .hljs-operator,
  .hljs-selector-attr,
  .hljs-selector-class,
  .hljs-selector-id,
  .hljs-variable {
    color: #79c0ff;
  }

  .hljs-meta .hljs-string,
  .hljs-regexp,
  .hljs-string {
    color: #a5d6ff;
  }

  .hljs-built_in,
  .hljs-symbol {
    color: #ffa657;
  }

  .hljs-code,
  .hljs-comment,
  .hljs-formula {
    color: #8b949e;
  }

  .hljs-name,
  .hljs-quote,
  .hljs-selector-pseudo,
  .hljs-selector-tag {
    color: #7ee787;
  }

  .hljs-subst {
    color: #c9d1d9;
  }

  .hljs-section {
    color: #1f6feb;
    font-weight: bold;
  }

  .hljs-bullet {
    color: #f2cc60;
  }

  .hljs-emphasis {
    color: #c9d1d9;
    font-style: italic;
  }

  .hljs-strong {
    color: #c9d1d9;
    font-weight: bold;
  }

  .hljs-addition {
    color: #aff5b4;
    background-color: #033a16;
  }

  .hljs-deletion {
    color: #ffdcd7;
    background-color: #67060c;
  }
}
